<?
	if ($starred=='1') {
		echo $ajax->link($html->image('icons/star.png'),
			array('controller'=>'purchases', 'action'=>'unstar', $id),
			array('update' => 'star'.$id), null, false
		);
	} else {
		echo $ajax->link($html->image('icons/star-off.png'),
			array('controller'=>'purchases', 'action'=>'star', $id),
			array('update' => 'star'.$id), null, false
		);
	}
?>